<head>
	<meta charset="utf8">
</head>
<?php 
	// 开启数据库连接
	include("../functions/db_conn.php");
	$SociNo = trim($_POST["SociNo"]); // 社团编号
	$SociName = trim($_POST["SociName"]); // 社团名称
	$Kind = trim($_POST["Kind"]);  // 社团类别
	$Level = trim($_POST["Level"]);  // 社团级别
	$LimitNum = trim($_POST["LimitNum"]);  // 社团需求人数

	// 更新社团表的sql语句
	$updateSoci_SQL = "update soci set SociName=\"$SociName\","; 
	$updateSoci_SQL .= "Kind=\"$Kind\",Level=\"$Level\", ";
	$updateSoci_SQL .=  "LimitNum=$LimitNum where SociNo=\"$SociNo\" ";
	
	// 执行该语句
	$updateSoci_Result = mysql_query($updateSoci_SQL);
	// 判断该语句是否执行成功
	if ($updateSoci_Result) {
		echo "<script>";
		echo "location.href = \"updatesoci_do.php\" ";
		echo "</script>";
	} else {
		echo "<script>";
		echo "location.href = \"updatesoci_do.php\" ";
		echo "</script>";
	}

 ?>